package 装饰者模式.组装发票;

/**
 *
 */
public class HeadDecorator extends Decorator{

    public HeadDecorator(Invoice ticket) {
        super(ticket);
    }

    @Override
    public void printInvoice() {
        System.out.println("This is the header of the invoice");

        super.printInvoice();
    }
}
